package com.swy.model;

import lombok.Getter;
import lombok.Setter;
import lombok.NoArgsConstructor;
import java.util.List;

@Getter
@Setter
@NoArgsConstructor
public class ImportResult {
    private int addedCount;
    private int duplicateCount;
    private List<String> duplicateWords;

    public ImportResult(int addedCount, int duplicateCount, List<String> duplicateWords) {
        this.addedCount = addedCount;
        this.duplicateCount = duplicateCount;
        this.duplicateWords = duplicateWords;
    }

    // 保留原有的全参构造（兼容性）
    public ImportResult(int addedCount, int duplicateCount) {
        this(addedCount, duplicateCount, null);
    }

    // 可以在这里添加一个表示是否成功的字段，或者在Service/Controller层处理成功/失败状态
    // private boolean success;
    // private String message;

    @Override
    public String toString() {
        return "ImportResult{" +
               "addedCount=" + addedCount +
               ", duplicateCount=" + duplicateCount +
               ", duplicateWords=" + duplicateWords +
               '}';
    }
} 